package com.example.administrator.UHPF.register;

import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

import com.example.administrator.myapplication.R;

/**
 * Created by Administrator on 2017/11/7.
 */

public class RegisterActivity extends FragmentActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        getRegisterFragment();
    }

    private void getRegisterFragment() {
        RegisterFragment registerFragment =new RegisterFragment();
        android.app.FragmentManager fm=this.getFragmentManager();
        FragmentTransaction ft=fm.beginTransaction();
        ft.replace(R.id.fragment_register,registerFragment);
        ft.commit();
    }


}
